package com.mcc.app.energy.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mcc.app.energy.domain.EneryMediumStatistics;
import org.apache.ibatis.annotations.Param;

/**
 * 能源介质能耗统计Mapper接口
 *
 * @author gxy
 * @date 2025-03-25
 */
public interface EneryMediumStatisticsMapper extends BaseMapper<EneryMediumStatistics> {
    int countHisRowList(@Param("tables") List<String> tables, @Param("startDt") Date startDt, @Param("endDt") Date endDt, @Param("timeTag") Integer timeTag);
    List<Map<String, Object>> getHisRowListByCodeListPage(@Param("tables") List<String> tables, @Param("codeList") List<String> codeList, @Param("startDt") Date startDt, @Param("endDt") Date endDt, @Param("timeTag") Integer timeTag, @Param("limit") Integer limit, @Param("offset") Integer offset);
    List<Map<String, Object>> getHisRowListByCodeList(@Param("tables") List<String> tables, @Param("codeList") List<String> codeList, @Param("startDt") Date startDt, @Param("endDt") Date endDt, @Param("timeTag") Integer timeTag);

}
